import { createSlice } from "@reduxjs/toolkit";

let active = createSlice({
    name: "active",
    initialState: {
        value: 0,
    },
    reducers: {
        setActive: (state, action) => {
            state.value = action.payload;
            return state
        }
    }
})

export const { setActive } = active.actions;
export default active